package com.finance.system.support.rpc.netty.msg;

import java.io.Serializable;

/**
 * Created with IDEA
 *
 * @author: 董文辉
 * Date: 2018/1/3
 * Time: 10:26
 */
public abstract class BaseMsg implements Serializable {
    private static final long serialVersionUID = 1L;
    private MsgType type;
    //必须唯一，否者会出现channel调用混乱
    private String phoneNum;

    //初始化客户端id
    public BaseMsg() {
        this.phoneNum = Constants.getPhoneNum();
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public MsgType getType() {
        return type;
    }

    public void setType(MsgType type) {
        this.type = type;
    }
}
